<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width= , initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    .box
    {   width: 100px;
        height: 100px;
        border: 1px solid red;
        /* transition: width 2s; */
        /* transition: width 2s,height 2s,transform 2s; */
        transition: all 2s;
       
    }
    .box:hover{ 
        width: 200px; 
        height: 200px; 
        transform:translateX(20%);
    }
    
    </style>
</head>
<body>
    <div class="box">

    </div>
</body>
</html>